package com.mvp.shq.washer.base;

import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;


/**
 * Created by hp on 2016/8/13.
 */
public abstract class BasePresenter<M,V> {

    public Context context;
    public M model;
    public V view;
    protected Dialog mDialog;
    protected ProgressDialog progressDialog;

    public void setVM(Context context, V v, M m){
        this.context = context;
        this.view = v;
        this.model = m;
        this.onStart();
    }

    public abstract void onStart();

    public void onDestroy(){

    }

}
